package com.lianxi.Courses.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Resource {
    private String name;

    public String getName() {
        return title;
    }

    public void setName(String name) {
        this.name = name;
    }

    private List<Comment> comments;

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    private String year;
    private String day;

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private String nickname;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    private String createStartDate;
    private String createEndDate;

    public String getCreateStartDate() {
        return createStartDate;
    }

    public void setCreateStartDate(String createStartDate) {
        this.createStartDate = createStartDate;
    }

    public String getCreateEndDate() {
        return createEndDate;
    }

    public void setCreateEndDate(String createEndDate) {
        this.createEndDate = createEndDate;
    }
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.title
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String title;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.path
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String path;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.cover_image_url
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String coverImageUrl;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.original_name
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String originalName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.file_size
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer fileSize;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.file_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String fileType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.total_time
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private String totalTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.click_count
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer clickCount;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.create_date
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Date createDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.cost_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer costType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.cost_number
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer costNumber;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.user_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.chapter_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer chapterId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column t_resource.status
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    private Integer status;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.id
     *
     * @return the value of t_resource.id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.id
     *
     * @param id the value for t_resource.id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.title
     *
     * @return the value of t_resource.title
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.title
     *
     * @param title the value for t_resource.title
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.path
     *
     * @return the value of t_resource.path
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getPath() {
        return path;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.path
     *
     * @param path the value for t_resource.path
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setPath(String path) {
        this.path = path == null ? null : path.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.cover_image_url
     *
     * @return the value of t_resource.cover_image_url
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getCoverImageUrl() {
        return coverImageUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.cover_image_url
     *
     * @param coverImageUrl the value for t_resource.cover_image_url
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setCoverImageUrl(String coverImageUrl) {
        this.coverImageUrl = coverImageUrl == null ? null : coverImageUrl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.original_name
     *
     * @return the value of t_resource.original_name
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getOriginalName() {
        return originalName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.original_name
     *
     * @param originalName the value for t_resource.original_name
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setOriginalName(String originalName) {
        this.originalName = originalName == null ? null : originalName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.file_size
     *
     * @return the value of t_resource.file_size
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getFileSize() {
        return fileSize;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.file_size
     *
     * @param fileSize the value for t_resource.file_size
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.file_type
     *
     * @return the value of t_resource.file_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getFileType() {
        return fileType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.file_type
     *
     * @param fileType the value for t_resource.file_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setFileType(String fileType) {
        this.fileType = fileType == null ? null : fileType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.total_time
     *
     * @return the value of t_resource.total_time
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getTotalTime() {
        return totalTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.total_time
     *
     * @param totalTime the value for t_resource.total_time
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setTotalTime(String totalTime) {
        this.totalTime = totalTime == null ? null : totalTime.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.click_count
     *
     * @return the value of t_resource.click_count
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getClickCount() {
        return clickCount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.click_count
     *
     * @param clickCount the value for t_resource.click_count
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.create_date
     *
     * @return the value of t_resource.create_date
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public String getCreateDate() {
        if (createDate == null) return null;
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(createDate);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.create_date
     *
     * @param createDate the value for t_resource.create_date
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.cost_type
     *
     * @return the value of t_resource.cost_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getCostType() {
        return costType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.cost_type
     *
     * @param costType the value for t_resource.cost_type
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setCostType(Integer costType) {
        this.costType = costType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.cost_number
     *
     * @return the value of t_resource.cost_number
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getCostNumber() {
        return costNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.cost_number
     *
     * @param costNumber the value for t_resource.cost_number
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setCostNumber(Integer costNumber) {
        this.costNumber = costNumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.user_id
     *
     * @return the value of t_resource.user_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.user_id
     *
     * @param userId the value for t_resource.user_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.chapter_id
     *
     * @return the value of t_resource.chapter_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getChapterId() {
        return chapterId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.chapter_id
     *
     * @param chapterId the value for t_resource.chapter_id
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_resource.status
     *
     * @return the value of t_resource.status
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_resource.status
     *
     * @param status the value for t_resource.status
     *
     * @mbggenerated Mon Oct 13 13:33:46 CST 2025
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}